<!DOCTYPE html>
<!-- thymeleaf支持 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>区块链学院学生竞赛管理系统</title>
    <link rel="stylesheet" href="/res/css/pintuer.css">
    <link rel="stylesheet" href="/res/css/admin.css">
    <script src="/res/js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="/res/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />区块链学院学生竞赛管理系统
        </h1>
    </div>
    <div class="head-l" style="float: right">

        <a href="##" class="button button-little bg-blue">
            <span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;
        <a class="button button-little bg-red" href="#">
            <span class="icon-power-off"></span> 退出登录</a>&nbsp;&nbsp;
    </div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>基本设置</h2>
    <ul style="display:block">
        <li><a th:href="@{/getStudentByStuNo(stuNo=${stu.stuNo})}" target="_self"><span class="icon-caret-right"></span>个人信息</a></li>
        <li><a href="/showNotices" target="_self"><span class="icon-caret-right"></span>系统消息</a></li>
        <li><a th:href="@{/getAllFavoriteByUserNo(stuNo=${stu.stuNo})}" target="_self"><span class="icon-caret-right"></span>收藏列表</a></li>
        <li><a href="/stugetAllCompetitionsByPages" target="_self">
            <span class="icon-caret-right"></span>竞赛信息</a>
        </li>
        <li><a th:href="@{/selectAllApplicationsByStuNo(stuNo=${stu.stuNo})}" target="_self"><span class="icon-caret-right"></span>报名记录</a></li>
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>上传备赛进度</a></li>
        <li><a href="/toAchievement" target="_self"><span class="icon-caret-right"></span>上传竞赛成果</a></li>


    </ul>

</div>

<script>
    var comId = localStorage.getItem("comId");
    var comName = localStorage.getItem("comName");
    var dutyTeacher = localStorage.getItem("dutyTeacher");
    var teaPhone = localStorage.getItem("teaPhone");
    console.log(comName);
    console.log(dutyTeacher);
    console.log(teaPhone);
</script>

<script type="text/javascript">
    $(function() {
        $(".leftnav h2").click(function() {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function() {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="#" target="_self" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</php></span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>

<div class="admin">

    <div class="panel admin-panel">
        <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 报名信息表</strong></div>
        <div class="body-content">

            <form method="post" class="form-x" action="/stuApplyCompetition">

                <div class="form-group">
                    <div class="label">
                        <label>竞赛编号：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input" name="comId" style="width:30%; float:left;" th:value="${comId}" />
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>竞赛名称：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input" name="comName" style="width:30%; float:left;" th:value="${comName}" />
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>学号：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input" name="stuNo" style="width:30%; float:left;" th:value="${stu.stuNo}" />
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>姓名：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input" name="stuName" value="" style="width:30%; float:left;" th:value="${stu.stuName}" />
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>性别：</label>
                    </div>
                    <div class="field">
                        <input type="radio" name="sex" value="男"/>男
                        <input type="radio" name="sex" value="女"/>女
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>年级：</label>
                    </div>
                    <div class="field">
                        <select name="stuGrade" style="width:30%; height: 41.6px; border-color:#dddddd; float:left;" />
                        <option value="大一">大一</option>
                        <option value="大二">大二</option>
                        <option value="大三">大三</option>
                        <option value="大四">大四</option>
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>专业：</label>
                    </div>
                    <div class="field">
                        <select name="department" style="width:30%; height: 41.6px; border-color:#dddddd; float:left;" />
                        <option value="计算机科学与技术">计算机科学与技术</option>
                        <option value="软件工程">软件工程</option>
                        <option value="网络工程">网络工程</option>
                        <option value="物联网工程">物联网工程</option>
                        <option value="人工智能">人工智能</option>
                        <option value="电子信息工程">电子信息工程</option>
                        <option value="通信工程">通信工程</option>
                        <option value="自动化">自动化</option>
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>指导教师：</label>
                    </div>
                    <div class="field">
                        <select name="teaName" style="width:30%; height: 41.6px; border-color:#dddddd; float:left;" />
                        <option value="张三">张三</option>
                        <option value="王五">王五</option>
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>联系电话：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input" name="phone" value="" style="width:30%; float:left;"/>
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>电子邮箱：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input" name="email" value="" style="width:30%; float:left;"/>
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label>上传简历：</label>
                    </div>
                    <div class="field">
                        <input type="file" name="resume"  style="width:30%; float:left;"/>
                        <div class="tips"></div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>

<!--                <input type="hidden" name="dutyTeacher" th:value="${dutyTeacher}">-->
<!--                <input type="hidden" name="teaPhone" th:value="${teaPhone}">-->

            </form>
        </div>
    </div>

</div>


</body>
</html>